package com.dldata.display.entity;

import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * Created by 倪继文 on 2017/5/15.
 */
@Entity
@Table(name = "THzxxb")
public class THzxxbEntity {
    private String id;
    private String brbh;
    private String zyh;
    private Integer zycs;
    private String zgysId;
    private String zgys;
    private String ryksId;
    private String ryks;
    private String cyksId;
    private String cyks;
    private String hzxm;
    private String xb;
    private String nl;
    private Timestamp csdate;
    private Timestamp rydate;
    private String chId;
    private String ch;
    private Timestamp cydate;
    private BigDecimal zyzfy;
    private BigDecimal yf;
    private BigDecimal ssf;
    private Integer zyts;
    private String ryzdmc;
    private String ryzdicd10;
    private String cyzdmc;
    private String cyzdicd10;
    private Timestamp zssrq;
    private String zssmc;
    private String zssbm;
    private String zssbw;
    private String lxdz;
    private String zjh;
    private String lxdh;
    private String dqszksId;
    private String dqszks;
    private Integer isbnz;
    private String nlDw;
    private String mz;
    private BigDecimal tz;

    @Id
    @Column(name = "id", nullable = false, length = 50)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "brbh", nullable = false, length = 50)
    public String getBrbh() {
        return brbh;
    }

    public void setBrbh(String brbh) {
        this.brbh = brbh;
    }

    @Basic
    @Column(name = "zyh", nullable = true, length = 20)
    public String getZyh() {
        return zyh;
    }

    public void setZyh(String zyh) {
        this.zyh = zyh;
    }

    @Basic
    @Column(name = "zycs", nullable = true)
    public Integer getZycs() {
        return zycs;
    }

    public void setZycs(Integer zycs) {
        this.zycs = zycs;
    }

    @Basic
    @Column(name = "zgys_id", nullable = true, length = 20)
    public String getZgysId() {
        return zgysId;
    }

    public void setZgysId(String zgysId) {
        this.zgysId = zgysId;
    }

    @Basic
    @Column(name = "zgys", nullable = true, length = 50)
    public String getZgys() {
        return zgys;
    }

    public void setZgys(String zgys) {
        this.zgys = zgys;
    }

    @Basic
    @Column(name = "ryks_id", nullable = true)
    public String getRyksId() {
        return ryksId;
    }

    public void setRyksId(String ryksId) {
        this.ryksId = ryksId;
    }

    @Basic
    @Column(name = "ryks", nullable = true, length = 20)
    public String getRyks() {
        return ryks;
    }

    public void setRyks(String ryks) {
        this.ryks = ryks;
    }

    @Basic
    @Column(name = "cyks_id", nullable = true, length = 20)
    public String getCyksId() {
        return cyksId;
    }

    public void setCyksId(String cyksId) {
        this.cyksId = cyksId;
    }

    @Basic
    @Column(name = "cyks", nullable = true, length = 20)
    public String getCyks() {
        return cyks;
    }

    public void setCyks(String cyks) {
        this.cyks = cyks;
    }

    @Basic
    @Column(name = "hzxm", nullable = true, length = 50)
    public String getHzxm() {
        return hzxm;
    }

    public void setHzxm(String hzxm) {
        this.hzxm = hzxm;
    }

    @Basic
    @Column(name = "xb", nullable = true, length = 4)
    public String getXb() {
        return xb;
    }

    public void setXb(String xb) {
        this.xb = xb;
    }

    @Basic
    @Column(name = "nl", nullable = true, length = 50)
    public String getNl() {
        return nl;
    }

    public void setNl(String nl) {
        this.nl = nl;
    }

    @Basic
    @Column(name = "csdate", nullable = true)
    public Timestamp getCsdate() {
        return csdate;
    }

    public void setCsdate(Timestamp csdate) {
        this.csdate = csdate;
    }

    @Basic
    @Column(name = "rydate", nullable = true)
    public Timestamp getRydate() {
        return rydate;
    }

    public void setRydate(Timestamp rydate) {
        this.rydate = rydate;
    }

    @Basic
    @Column(name = "ch_id", nullable = true, length = 20)
    public String getChId() {
        return chId;
    }

    public void setChId(String chId) {
        this.chId = chId;
    }

    @Basic
    @Column(name = "ch", nullable = true, length = 50)
    public String getCh() {
        return ch;
    }

    public void setCh(String ch) {
        this.ch = ch;
    }

    @Basic
    @Column(name = "cydate", nullable = true)
    public Timestamp getCydate() {
        return cydate;
    }

    public void setCydate(Timestamp cydate) {
        this.cydate = cydate;
    }

    @Basic
    @Column(name = "zyzfy", nullable = true, precision = 2)
    public BigDecimal getZyzfy() {
        return zyzfy;
    }

    public void setZyzfy(BigDecimal zyzfy) {
        this.zyzfy = zyzfy;
    }

    @Basic
    @Column(name = "yf", nullable = true, precision = 2)
    public BigDecimal getYf() {
        return yf;
    }

    public void setYf(BigDecimal yf) {
        this.yf = yf;
    }

    @Basic
    @Column(name = "ssf", nullable = true, precision = 2)
    public BigDecimal getSsf() {
        return ssf;
    }

    public void setSsf(BigDecimal ssf) {
        this.ssf = ssf;
    }

    @Basic
    @Column(name = "zyts", nullable = true)
    public Integer getZyts() {
        return zyts;
    }

    public void setZyts(Integer zyts) {
        this.zyts = zyts;
    }

    @Basic
    @Column(name = "ryzdmc", nullable = true, length = 500)
    public String getRyzdmc() {
        return ryzdmc;
    }

    public void setRyzdmc(String ryzdmc) {
        this.ryzdmc = ryzdmc;
    }

    @Basic
    @Column(name = "ryzdicd10", nullable = true, length = 50)
    public String getRyzdicd10() {
        return ryzdicd10;
    }

    public void setRyzdicd10(String ryzdicd10) {
        this.ryzdicd10 = ryzdicd10;
    }

    @Basic
    @Column(name = "cyzdmc", nullable = true, length = 500)
    public String getCyzdmc() {
        return cyzdmc;
    }

    public void setCyzdmc(String cyzdmc) {
        this.cyzdmc = cyzdmc;
    }

    @Basic
    @Column(name = "cyzdicd10", nullable = true, length = 50)
    public String getCyzdicd10() {
        return cyzdicd10;
    }

    public void setCyzdicd10(String cyzdicd10) {
        this.cyzdicd10 = cyzdicd10;
    }

    @Basic
    @Column(name = "zssrq", nullable = true)
    public Timestamp getZssrq() {
        return zssrq;
    }

    public void setZssrq(Timestamp zssrq) {
        this.zssrq = zssrq;
    }

    @Basic
    @Column(name = "zssmc", nullable = true, length = 1000)
    public String getZssmc() {
        return zssmc;
    }

    public void setZssmc(String zssmc) {
        this.zssmc = zssmc;
    }

    @Basic
    @Column(name = "zssbm", nullable = true, length = 20)
    public String getZssbm() {
        return zssbm;
    }

    public void setZssbm(String zssbm) {
        this.zssbm = zssbm;
    }

    @Basic
    @Column(name = "zssbw", nullable = true, length = 500)
    public String getZssbw() {
        return zssbw;
    }

    public void setZssbw(String zssbw) {
        this.zssbw = zssbw;
    }

    @Basic
    @Column(name = "lxdz", nullable = true, length = 300)
    public String getLxdz() {
        return lxdz;
    }

    public void setLxdz(String lxdz) {
        this.lxdz = lxdz;
    }

    @Basic
    @Column(name = "zjh", nullable = true, length = 30)
    public String getZjh() {
        return zjh;
    }

    public void setZjh(String zjh) {
        this.zjh = zjh;
    }

    @Basic
    @Column(name = "lxdh", nullable = true, length = 20)
    public String getLxdh() {
        return lxdh;
    }

    public void setLxdh(String lxdh) {
        this.lxdh = lxdh;
    }

    @Basic
    @Column(name = "dqszks_ID", nullable = true, length = 20)
    public String getDqszksId() {
        return dqszksId;
    }

    public void setDqszksId(String dqszksId) {
        this.dqszksId = dqszksId;
    }

    @Basic
    @Column(name = "dqszks", nullable = true, length = 20)
    public String getDqszks() {
        return dqszks;
    }

    public void setDqszks(String dqszks) {
        this.dqszks = dqszks;
    }

    @Basic
    @Column(name = "Isbnz", nullable = true)
    public Integer getIsbnz() {
        return isbnz;
    }

    public void setIsbnz(Integer isbnz) {
        this.isbnz = isbnz;
    }

    @Basic
    @Column(name = "nl_dw", nullable = true, length = 10)
    public String getNlDw() {
        return nlDw;
    }

    public void setNlDw(String nlDw) {
        this.nlDw = nlDw;
    }

    @Basic
    @Column(name = "mz", nullable = true, length = 2)
    public String getMz() {
        return mz;
    }

    public void setMz(String mz) {
        this.mz = mz;
    }

    @Basic
    @Column(name = "tz", nullable = true, precision = 2)
    public BigDecimal getTz() {
        return tz;
    }

    public void setTz(BigDecimal tz) {
        this.tz = tz;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        THzxxbEntity that = (THzxxbEntity) o;

        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (brbh != null ? !brbh.equals(that.brbh) : that.brbh != null) return false;
        if (zyh != null ? !zyh.equals(that.zyh) : that.zyh != null) return false;
        if (zycs != null ? !zycs.equals(that.zycs) : that.zycs != null) return false;
        if (zgysId != null ? !zgysId.equals(that.zgysId) : that.zgysId != null) return false;
        if (zgys != null ? !zgys.equals(that.zgys) : that.zgys != null) return false;
        if (ryksId != null ? !ryksId.equals(that.ryksId) : that.ryksId != null) return false;
        if (ryks != null ? !ryks.equals(that.ryks) : that.ryks != null) return false;
        if (cyksId != null ? !cyksId.equals(that.cyksId) : that.cyksId != null) return false;
        if (cyks != null ? !cyks.equals(that.cyks) : that.cyks != null) return false;
        if (hzxm != null ? !hzxm.equals(that.hzxm) : that.hzxm != null) return false;
        if (xb != null ? !xb.equals(that.xb) : that.xb != null) return false;
        if (nl != null ? !nl.equals(that.nl) : that.nl != null) return false;
        if (csdate != null ? !csdate.equals(that.csdate) : that.csdate != null) return false;
        if (rydate != null ? !rydate.equals(that.rydate) : that.rydate != null) return false;
        if (chId != null ? !chId.equals(that.chId) : that.chId != null) return false;
        if (ch != null ? !ch.equals(that.ch) : that.ch != null) return false;
        if (cydate != null ? !cydate.equals(that.cydate) : that.cydate != null) return false;
        if (zyzfy != null ? !zyzfy.equals(that.zyzfy) : that.zyzfy != null) return false;
        if (yf != null ? !yf.equals(that.yf) : that.yf != null) return false;
        if (ssf != null ? !ssf.equals(that.ssf) : that.ssf != null) return false;
        if (zyts != null ? !zyts.equals(that.zyts) : that.zyts != null) return false;
        if (ryzdmc != null ? !ryzdmc.equals(that.ryzdmc) : that.ryzdmc != null) return false;
        if (ryzdicd10 != null ? !ryzdicd10.equals(that.ryzdicd10) : that.ryzdicd10 != null) return false;
        if (cyzdmc != null ? !cyzdmc.equals(that.cyzdmc) : that.cyzdmc != null) return false;
        if (cyzdicd10 != null ? !cyzdicd10.equals(that.cyzdicd10) : that.cyzdicd10 != null) return false;
        if (zssrq != null ? !zssrq.equals(that.zssrq) : that.zssrq != null) return false;
        if (zssmc != null ? !zssmc.equals(that.zssmc) : that.zssmc != null) return false;
        if (zssbm != null ? !zssbm.equals(that.zssbm) : that.zssbm != null) return false;
        if (zssbw != null ? !zssbw.equals(that.zssbw) : that.zssbw != null) return false;
        if (lxdz != null ? !lxdz.equals(that.lxdz) : that.lxdz != null) return false;
        if (zjh != null ? !zjh.equals(that.zjh) : that.zjh != null) return false;
        if (lxdh != null ? !lxdh.equals(that.lxdh) : that.lxdh != null) return false;
        if (dqszksId != null ? !dqszksId.equals(that.dqszksId) : that.dqszksId != null) return false;
        if (dqszks != null ? !dqszks.equals(that.dqszks) : that.dqszks != null) return false;
        if (isbnz != null ? !isbnz.equals(that.isbnz) : that.isbnz != null) return false;
        if (nlDw != null ? !nlDw.equals(that.nlDw) : that.nlDw != null) return false;
        if (mz != null ? !mz.equals(that.mz) : that.mz != null) return false;
        if (tz != null ? !tz.equals(that.tz) : that.tz != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (brbh != null ? brbh.hashCode() : 0);
        result = 31 * result + (zyh != null ? zyh.hashCode() : 0);
        result = 31 * result + (zycs != null ? zycs.hashCode() : 0);
        result = 31 * result + (zgysId != null ? zgysId.hashCode() : 0);
        result = 31 * result + (zgys != null ? zgys.hashCode() : 0);
        result = 31 * result + (ryksId != null ? ryksId.hashCode() : 0);
        result = 31 * result + (ryks != null ? ryks.hashCode() : 0);
        result = 31 * result + (cyksId != null ? cyksId.hashCode() : 0);
        result = 31 * result + (cyks != null ? cyks.hashCode() : 0);
        result = 31 * result + (hzxm != null ? hzxm.hashCode() : 0);
        result = 31 * result + (xb != null ? xb.hashCode() : 0);
        result = 31 * result + (nl != null ? nl.hashCode() : 0);
        result = 31 * result + (csdate != null ? csdate.hashCode() : 0);
        result = 31 * result + (rydate != null ? rydate.hashCode() : 0);
        result = 31 * result + (chId != null ? chId.hashCode() : 0);
        result = 31 * result + (ch != null ? ch.hashCode() : 0);
        result = 31 * result + (cydate != null ? cydate.hashCode() : 0);
        result = 31 * result + (zyzfy != null ? zyzfy.hashCode() : 0);
        result = 31 * result + (yf != null ? yf.hashCode() : 0);
        result = 31 * result + (ssf != null ? ssf.hashCode() : 0);
        result = 31 * result + (zyts != null ? zyts.hashCode() : 0);
        result = 31 * result + (ryzdmc != null ? ryzdmc.hashCode() : 0);
        result = 31 * result + (ryzdicd10 != null ? ryzdicd10.hashCode() : 0);
        result = 31 * result + (cyzdmc != null ? cyzdmc.hashCode() : 0);
        result = 31 * result + (cyzdicd10 != null ? cyzdicd10.hashCode() : 0);
        result = 31 * result + (zssrq != null ? zssrq.hashCode() : 0);
        result = 31 * result + (zssmc != null ? zssmc.hashCode() : 0);
        result = 31 * result + (zssbm != null ? zssbm.hashCode() : 0);
        result = 31 * result + (zssbw != null ? zssbw.hashCode() : 0);
        result = 31 * result + (lxdz != null ? lxdz.hashCode() : 0);
        result = 31 * result + (zjh != null ? zjh.hashCode() : 0);
        result = 31 * result + (lxdh != null ? lxdh.hashCode() : 0);
        result = 31 * result + (dqszksId != null ? dqszksId.hashCode() : 0);
        result = 31 * result + (dqszks != null ? dqszks.hashCode() : 0);
        result = 31 * result + (isbnz != null ? isbnz.hashCode() : 0);
        result = 31 * result + (nlDw != null ? nlDw.hashCode() : 0);
        result = 31 * result + (mz != null ? mz.hashCode() : 0);
        result = 31 * result + (tz != null ? tz.hashCode() : 0);
        return result;
    }
}
